<!DOCTYPE html>
<html lang="zh-CN">

<head>
  <meta charset="UTF-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>手风琴效果</title>
  <style>
    * {
      margin: 0;
      padding: 0;
    }

    ul {
      width: 1200px;
      height: 460px;
      display: flex;
      margin: 50px auto;
      border: 1px solid #f00;
      /* 超出隐藏 */
      overflow: hidden;
    }

    li {
      /* 除去 li 前面的小圆点 */
      list-style: none;
      width: 240px;
    }
  </style>
</head>

<body>
  <ul>
    <li><img src="./images/1.jpg" alt=""></li>
    <li><img src="./images/2.jpg" alt=""></li>
    <li><img src="./images/3.jpg" alt=""></li>
    <li><img src="./images/4.jpg" alt=""></li>
    <li><img src="./images/5.jpg" alt=""></li>
  </ul>
</body>

</html>